package com.kbckbc.easyhangul;

import java.util.ArrayList;

import android.os.Bundle;
import android.app.Activity;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ArrayAdapter;
import android.widget.ListView;

public class HowtouseActivity extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_howtouse);

		init();
		initEvent();
	}

	public void init() {
		ArrayList<String> arrHowtoUse = new ArrayList<String>();
		arrHowtoUse.add(getResources().getString(R.string.howto_howto1));
		arrHowtoUse.add(getResources().getString(R.string.howto_howto2));
		arrHowtoUse.add(getResources().getString(R.string.howto_howto3));

		ArrayAdapter<String> myAdapter1 = new ArrayAdapter<String>(this,
				R.layout.howtouse_list, arrHowtoUse);

		ListView listViewHowtoUse = (ListView) findViewById(R.id.listViewHowtoUse);
		listViewHowtoUse.setAdapter(myAdapter1);
		listViewHowtoUse.setChoiceMode(ListView.CHOICE_MODE_NONE);
	}

	public void initEvent() {
		findViewById(R.id.btnBack).setOnClickListener(new OnClickListener() {

			public void onClick(View v) {
				finish();
			}
		});
	}
}
